﻿using System;
using System.IO;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using KenLib.BusinessManager;
using KenLib.BusinessObject;
using DataInfo;
using System.Diagnostics;
using System.Text.RegularExpressions;


public partial class Org_frmImage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (Session["fileStreamH"] != null)
        {
            Stream stream = (Stream)Session["fileStreamH"];
            System.Drawing.Image image = System.Drawing.Image.FromStream(stream);
            System.IO.MemoryStream ms = new System.IO.MemoryStream();
            image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);//save image into RAM 
            Response.BinaryWrite(ms.GetBuffer());
            //stream.Close();
            //image.Dispose();
            //Response.Clear();
        }
    }
}
